//
//  Circle.m
//  DemoDrawingShapesInCanvasUsingObjects
//
//  Created by duc nguyen van on 8/15/11.
//  Copyright 2011 STU. All rights reserved.
//

#import "Circle.h"


@implementation Circle

-(void)drawRect:(CGRect)rect{
	CGContextRef context = UIGraphicsGetCurrentContext();
	CGContextSetRGBStrokeColor(context, 1, 0, 0, 1);
	CGContextAddEllipseInRect(context, CGRectMake(self.bounds.origin.x, self.bounds.origin.y, self.bounds.size.width, self.bounds.size.height));
	CGContextStrokePath(context);
	CGContextFillPath(context);
}

@end
